package HomeWork;

public class Car {
    String brank;
    String color;
    double price;
    int capacity;
    Car() {
    }
    Car(String brank,String color,double price,int capacity) {
        this.brank = brank;
        this.color = color;
        this.price = price;
        this.capacity = capacity;
    }
    void start(){
        System.out.println(brank+"牌子，"+color+"色的，"+price+"钱的"+capacity+"坐的车启动了。。。");
    }
    void run() {
        System.out.println(brank+"牌子，"+color+"色的，"+price+"钱的"+capacity+"坐的车开起来了。。。");
    }
    void stop() {
        System.out.println(brank+"牌子，"+color+"色的，"+price+"钱的"+capacity+"坐的车停下来了。。。");
    }
}
